package nimbus.events
{
	import flash.events.Event;

	public class UndoRedoEvent extends Event
	{
		public static const COMMAND_ADDED:String = 'commandAdded';
		public static const UNDO_EXECUTED:String = 'undoExecuted';
		public static const REDO_EXECUTED:String = 'redoExecuted';
		public static const HISTORY_TRIMMED:String = 'historyTrimmed';
		
		public var commands:Array;
		
		public function UndoRedoEvent(type:String, commands:Array)
		{
			super(type);
			this.commands = commands;
		}
		
		override public function clone():Event
		{
			return new UndoRedoEvent(type, commands);
		}
	}
}